#include <ros/ros.h>
#include <study/temp.h>

void callback(const study::temp::ConstPtr& msg) noexcept {
    ROS_INFO("name: %s, age: %d", msg->name.c_str(), msg->age);
}

int main(int argc, char **argv) noexcept {
    ::ros::init(argc, argv, "subscriber");
    ::ros::NodeHandle nh;
    ::ros::Subscriber sub = nh.subscribe("topic", 10, callback);
    ::ros::spin();

    return 0;
}
